package com.isias.system.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.isias.model.system.SysUser;
import com.isias.model.vo.LoginVo;
import com.isias.model.vo.SysUserQueryVo;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Map;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author fanyi
 * @since 2023-02-19
 */
public interface SysUserService extends IService<SysUser> {
    IPage<SysUser> SeletePage(Page<SysUser> page, SysUserQueryVo sysUserQueryVo);

    Boolean updataStatus(String id,Integer status);

    Map<String, Object> Login(LoginVo loginVo);

    Map<String, Object> getUserInfo(String username);


    Boolean updataHeadUrl(String username,String url);

    boolean saveUser(SysUser sysUser);

    boolean register(SysUser sysUser);

    String GetCode(String email);	//通过传入的手机号来获取验证码

    SysUser GetUserByusername(String username); //通过账号来获取单个用户

    String GetIdByUsername(String username);

    boolean savePost(String id, String postid);

    boolean doAssign(String userId, String deptId);

    boolean CodeIsRight(String email,String code);

    boolean UpdatePassword(String username, String password);


    boolean PasswordIsRight(String username, String password);
}
